package com.czx;

import com.czx.config.AppConfig;
import com.czx.service.IndexService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author czx
 * @date 2020-07-01 11:41
 */
public class Application {

	public static void main(String[] args) {
		ApplicationContext app = new AnnotationConfigApplicationContext(AppConfig.class);
		IndexService indexService = app.getBean(IndexService.class);
		indexService.test();
	}

}
